Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.smart.query.contentviews--contentViews

This contribution is part of XML component org.nuxeo.ecm.platform.smart.query.contentviews inside nuxeo-platform-smart-query-jsf-5.8.jar

Documentation

Content view definition for the global smart query results.

It is bound to smartNXQLQueryActions component for the query part, the sort information, and the selected layout columns retrieval.

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="nxql_incremental_smart_query">
    
          <emptySentence>label.content.empty.search</emptySentence>
          <translateEmptySentence>true</translateEmptySentence>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern escapeParameters="false" quoteParameters="false">
              SELECT * FROM Document WHERE (?) AND ecm:mixinType !=
              'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND
              ecm:currentLifeCycleState != 'deleted'
            </pattern>
            <parameter>#{smartNXQLQueryActions.queryPart}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
            <sortInfosBinding>
              #{smartNXQLQueryActions.searchSortInfos}
            </sortInfosBinding>
          </coreQueryPageProvider>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
            <event/>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <searchLayout name="nxql_incremental_smart_query"/>
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="search_listing_ajax" showCSVExport="true" title="document_listing" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns" translateTitle="true"/>
          </resultLayouts>
          <resultColumns>
            #{smartNXQLQueryActions.selectedLayoutColumns}
          </resultColumns>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <documentation>
      Content view definition for the global smart query results.

      It is bound to smartNXQLQueryActions component for the query part, the
      sort information, and the selected layout columns retrieval.
    </documentation>

    <contentView name="nxql_incremental_smart_query">

      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern escapeParameters="false" quoteParameters="false">
          SELECT * FROM Document WHERE (?) AND ecm:mixinType !=
          'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND
          ecm:currentLifeCycleState != 'deleted'
        </pattern>
        <parameter>#{smartNXQLQueryActions.queryPart}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
        <sortInfosBinding>
          #{smartNXQLQueryActions.searchSortInfos}
        </sortInfosBinding>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
        <event/>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <searchLayout name="nxql_incremental_smart_query"/>
      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="search_listing_ajax" showCSVExport="true" title="document_listing" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_compact_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_virtual_navigation_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns" translateTitle="true"/>
      </resultLayouts>
      <resultColumns>
        #{smartNXQLQueryActions.selectedLayoutColumns}
      </resultColumns>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>

    </contentView>

  </extension>